package com.cookor.poi.modules.phy.entity;

import com.cookor.poi.common.persistence.DataEntity;
import com.cookor.poi.modules.tenant.entity.TTenant;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;

public class TBannerPic extends DataEntity<TBannerPic> {
  private static final long serialVersionUID = 1L;
  
  private Integer tenantId;
  
  private Integer hospitalId;
  
  private Integer type;
  
  private String title;
  
  private String picUrl;
  
  private String href;
  
  private String sort;
  
  private String typeName;
  
  private TTenant tenant;
  
  private String tenantName;
  
  public TBannerPic() {}
  
  public TBannerPic(String id) {
    super(id);
  }
  
  @NotNull(message = "机构id不能为空")
  public Integer getTenantId() {
    return this.tenantId;
  }
  
  public void setTenantId(Integer tenantId) {
    this.tenantId = tenantId;
  }
  
  public Integer getHospitalId() {
    return this.hospitalId;
  }
  
  public void setHospitalId(Integer hospitalId) {
    this.hospitalId = hospitalId;
  }
  
  public Integer getType() {
    return this.type;
  }
  
  public void setType(Integer type) {
    this.type = type;
  }
  
  @Length(min = 0, max = 64, message = "图片名称长度必须介于 0 和 64 之间")
  public String getTitle() {
    return this.title;
  }
  
  public void setTitle(String title) {
    this.title = title;
  }
  
  @Length(min = 0, max = 512, message = "图片地址长度必须介于 0 和 512 之间")
  public String getPicUrl() {
    return this.picUrl;
  }
  
  public void setPicUrl(String picUrl) {
    this.picUrl = picUrl;
  }
  
  @Length(min = 0, max = 512, message = "链接长度必须介于 0 和 512 之间")
  public String getHref() {
    return this.href;
  }
  
  public void setHref(String href) {
    this.href = href;
  }
  
  @Length(min = 0, max = 11, message = "排序长度必须介于 0 和 11 之间")
  public String getSort() {
    return this.sort;
  }
  
  public void setSort(String sort) {
    this.sort = sort;
  }
  
  @Length(min = 0, max = 64, message = "类型名称，冗余长度必须介于 0 和 64 之间")
  public String getTypeName() {
    return this.typeName;
  }
  
  public void setTypeName(String typeName) {
    this.typeName = typeName;
  }
  
  public TTenant getTenant() {
    return this.tenant;
  }
  
  public void setTenant(TTenant tenant) {
    this.tenant = tenant;
  }
  
  public String getTenantName() {
    return this.tenantName;
  }
  
  public void setTenantName(String tenantName) {
    this.tenantName = tenantName;
  }
}
